package com.hxkj.service.wechat;

import com.hxkj.domain.po.Applet;
import com.hxkj.domain.po.AppletAgent;
import com.hxkj.domain.po.AppletAgentArticle;
import com.hxkj.domain.po.AppletArticle;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

/**
 * @InterfaceName AppletArticlePushService
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/6/12 18:28
 * @Version 1.0
 */
public interface AppletArticlePushService {
    /**
     * @author Mr.zheng
     * @Description saveAgentArticle 保存用户与文章的关联信息
     * @Date 14:22 2018/6/12
     * @Param [appletAgentArticle]
     * @return com.platform.common.domain.result.ResultMessageStruct
     **/
    void saveAgentArticle(AppletAgentArticle appletAgentArticle) throws Exception;


    /**
     * @author Mr.zheng
     * @Description getHaveAgentArticle 获取已发布的文章
     * @Date 18:33 2018/6/12
     * @Param [appletAgentArticle, pageParam]
     * @return java.util.concurrent.Callable<com.platform.common.domain.result.ResultPageStruct<com.hxkj.domain.po.AppletArticle>>
     **/
    ResultPageStruct<AppletArticle> getHaveAgentArticle(AppletAgentArticle appletAgentArticle, PageTo pageParam) throws Exception;


    /**
     * @author Mr.zheng
     * @Description getNotAgentArticle 获取未发布的文章
     * @Date 18:33 2018/6/12
     * @Param [appletAgentArticle, pageParam]
     * @return java.util.concurrent.Callable<com.platform.common.domain.result.ResultPageStruct<com.hxkj.domain.po.AppletArticle>>
     **/
    ResultPageStruct<AppletArticle> getNotAgentArticle(AppletAgentArticle appletAgentArticle, PageTo pageParam) throws Exception;

    /**
    * @author Mr.zheng
    * @Description getAppletByAgentId 根据用户ID获取小程序下拉框列表
    * @Date 15:36 2018/6/13
    * @Param [appletAgentArticle, pageParam]
    * @return com.platform.common.domain.result.ResultPageStruct<com.hxkj.domain.po.AppletArticle>
    **/
    ResultPageStruct<Applet> getAppletByAgentId(AppletAgent appletAgent, PageTo pageParam) throws Exception;
}
